/**
 * 产品管理
 */
import request from '@/utils/request'

/**
 * @method productList
 * @description 商品列表
 */
export function productList(data) {
  return request({
    url: '/mall/admin/goods/listJurisdiction',
    method: 'post',
    data: data
  })
}

/**
 * @method productDetail
 * @description 商品详情
 */
export function productDetail(params) {
  return request({
    url: '/mall/admin/goods/distinguishShopGoods',
    method: 'get',
    params: params
  })
}

/**
 * @method addProduct
 * @description 新增商品
 */
export function addProduct(data) {
  return request({
    url: '/mall/admin/goods/add',
    method: 'post',
    data: data
  })
}

/**
 * @method updateProduct
 * @description 新增商品
 */
export function updateProduct(data) {
  return request({
    url: '/mall/admin/goods/distinguishShopupdate',
    method: 'post',
    data: data
  })
}

/**
 * @method delProduct
 * @description 删除商品
 */
export function delProduct(params) {
  return request({
    url: '/mall/admin/goods/delete',
    method: 'delete',
    params: params
  })
}
// 批量更新商品状态
export function batchStatus(data) {
  return request({
    url: '/mall/admin/goods/sku/batchModifyStatusByGoodsId',
    method: 'post',
    data: data
  })
}
/**
 * @method getGoodsStoreList
 * @description 根据商品获取门店列表
 */
 export function getGoodsStoreList(params) {
  return request({
    url: '/mall/admin/store_goods/getGoodsStoreList',
    method: 'get',
    params: params
  })
}
export function batchModifyStoreSkus(data) {
  return request({
    url: '/mall/admin/store_goods/batchModifyStoreSkus',
    method: 'post',
    data: data
  })
}



